package com.example.qianfeng.controller;

import com.example.qianfeng.config.TestConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestConfig config;

    @RequestMapping("/get")
    public String get(){
        String ak = config.getAk();
        String sk = config.getSk();
        String host = config.getHost();
        String bucketName = config.getBucketName();
        return ak + sk + host + bucketName;
    }
}
